home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
HUNT.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
339b
|
16 lines
' HUNT.BAS
' This program demonstrates the INSTR function.
CLS
search$ = "iddle"
base$ = "High, diddle, diddle, the cat and the fiddle"
strLocation% = INSTR(1, base$, search$)
IF (strLocation% <> 0) THEN
PRINT search$; " first appears starting at character"; strLocation%
ELSE
PRINT search$; " not found"
END IF